package data.user;

/**
 *
 * @author Andrea
 */
public class User {
    private Long id;
    private String pwd;
    
    private static Long incrementalId = 0L;
    
    public User() {
    }
    
    public User(Long id) {
        this.id = id;
    }

    public User(Long id, String pwd) {
        this.id = id;
        this.pwd = pwd;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPassword() {
        return pwd;
    }

    public void setPassword(String pwd) {
        this.pwd = pwd;
    }
    
    public void assignNewId(){
        id = incrementalId++;
    }
    
    public void setSpecifics(String specs){
        
    }
    
    public String getSpecifics(){
        return "";
    }
}
